<?php
session_start();
header("content-type:text/html; charset=utf-8");
require_once("../../utils/conn.php");

    $db = new mysql_db();
    $findFmSql="select * from family where familyId='".$_SESSION['family_current']."'";
    $family_current=$db->data($findFmSql);

     if($family_current["total"]<=0){
         echo ($db->createJson(false,"","system error"));
     }
     else{
       $data= '{'.
                '"family_img":"'.$family_current["data"][0]["faceImg"].'",'.
                '"member":"'.$family_current["data"][0]["quantity"].'",'.
                '"fans":"'.$family_current["total"].'",'.
                '"focus":"'.$family_current["total"].'",'.
                '"nickname":"'.$family_current["data"][0]["title"].'",'.
                '"domain":"'.$family_current["data"][0]["domain"].'",'.
                '"family_info":"'.$family_current["data"][0]["abstract"].'",'.
               '"address":"'.$family_current["data"][0]["address"].'",'.
                '"photos":"'.$family_current["total"].'",'.
                '"weibo":"'.$family_current["total"].'",'.
                '"blog":"'.$family_current["total"].'",'.
                '"tag":"'.$family_current["data"][0]["tags"].'"'.
            '}';
         echo($db->createJson(true,$data,""));

     }
?>